package com.zxp.cloud.order.feign;

import com.zxp.cloud.core.api.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author shollin
 * @desc
 * @date 2021/7/20/020 20:21
 */
@FeignClient("cloud-api-storage")
public interface StorageFeign {

    @RequestMapping("/descrement")
    ResponseData descrement(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}
